package com.itheima.service;

import com.itheima.service.impl.ProjectServiceImpl;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
//指定需要调用的服务名称
@FeignClient(name="provider",fallback = ProjectServiceImpl.class)
public interface ProjectService {
    //调用的请求路径
    @GetMapping( "/project/{name}")
    public String findProject(@PathVariable("name") String name);
}